package model

import "gorm.io/gorm"

type Post struct {
	gorm.Model
	UserID int    `gorm:"type:int;comment:'用户ID'"`
	Title  string `gorm:"type:varchar(255);comment:'帖子标题'"`
	Text   string `gorm:"type:varchar(255);comment:'文本内容'"`
	Image  string `gorm:"type:varchar(255);comment:'帖子图片'"`
	Type   string `gorm:"type:varchar(255);comment:'帖子分类'"`
	Status int    `gorm:"type:int;comment:'1公开 2私密'"`
	Likes  int    `gorm:"type:int;comment:'浏览量'"`
}
